package com.chenchen.code.guava.eventbus;

import com.chenchen.code.guava.eventbus.listeners.DeadEventListener;
import com.google.common.eventbus.EventBus;

/**
* @Description:
* @author chenchen
* @date 2019/5/13 14:59
*/
public class DeadEventBusExample
{

    public static void main(String[] args)
    {

        final EventBus eventBus = new EventBus("DeadEventBus") {
            @Override
            public String toString()
            {
                return "DEAD-EVENT-BUS";
            }
        };
        eventBus.register(new DeadEventListener());
        eventBus.post("Hello");
    }
}
